package com.info.zhiduoduo.repository.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 城市开票类目
 */
@Data
@TableName("zdd_system_citycategory")
public class CityInvoiceCategory extends Model<CityInvoiceCategory> {


    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;

    /**名称 */
    private String name;

    /** 父类 id */
    private Integer parentid;

    /** 所属公司*/
    @TableField("city_id")
    private Integer cityId;

    /** 删除标志 */
    @TableLogic
    private Integer deleted;

    /**创建时间 */
    private Date createtime;

    /** 修改时间 */
    @TableField(update = "now()")
    private Date updatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
